ComOpen ("<CommunicationPort>" ,
"<BaudRate> <Parity, DataBits,
StopBits> <FlowControl>")
Function establishes
a connection with the serial port.
Parameters
<CommunicationPort> COM port to which the device is
connected for communication.
<BaudRate> Number of bits passed per second.
<Parity, DataBits, StopBits> Parity describes
the type of parity used to check the datastream passed. The values can be 'N'
for none, 'E' for even or 'O' for odd Parity check. DataBits value describes
the number of bits used to form a byte. It can be 7, 8 or 9. StopBits value
explains the value used to terminate the datastream. Either 1 or 2 is used as
stop bits. All the three values are concatenated into a single string and the appended
string is passed as an argument.
<FlowControl> Values the variable can take are:
- 'hardware' or 'hard'
- 'software' or 'soft'
- 'none'
Return Value
Returns a boolean value saying TRUE or FALSE.
Remarks
- Xtend IVR supports only one COM port per thread/channel. To support more COM port operations, use Service Threads.
See for Example